﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataObject.DataAccess;

public partial class Pages_Operators_ProviderItem : System.Web.UI.Page
{
    public Guid? ProviderID
    {
        get;
        set;
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request["ProviderID"] != null)
                ProviderID = new Guid(Request["ProviderID"]);
            HashSet<string> hs = new HashSet<string>();
            hs.Add("Value ASC");

            // Load Country
            this.ddlCountryInput.DataSource = ParameterDAO.CreateInstant().SelectListItem(null, "Country", "", "", null, true, hs);
            this.ddlCountryInput.DataTextField = "Value";
            this.ddlCountryInput.DataValueField = "ParamID";
            this.ddlCountryInput.DataBind();
        }
    }
}
